/**
 * 
 */
package com.jm.web.tags.support;

/**
 * @author yanjie
 *
 * 2011/9/30 上午8:57:04
 */
public class ValidateTag extends BaseFormItemTag{
	private static final long serialVersionUID = -6042549506389980039L;
	
	public static final String TAG_RULE 		= "rule";
	public static final String TAG_MSG 			= "msg";
	public static final String TAG_ACTION 		= "action";
	public static final String TAG_EVENT 		= "event";
	public static final String TAG_ACTION_VALUE = "actionvalue";
	public static final String TAG_REQUIRED 	= "required";
	public static final String TAG_REQUIREDMSG 	= "requiredMsg";
	
	protected String strRule 					= "";
	protected String strMsg 					= "";
	protected String strAction 					= "";
	protected String strEvent 					= "";
	protected String strActionValue 			= "";
	protected String strRequired 				= "";
	protected String strRequiredMsg 			= "";
	
	/**
	 * @return
	 */
	public String getRequiredMsg() {
		return strRequiredMsg;
	}
	/**
	 * @param strRequiredMsg
	 */
	public void setRequiredMsg(String strRequiredMsg) {
		this.SetExtValue(TAG_REQUIREDMSG, strRequiredMsg);
		this.strRequiredMsg = strRequiredMsg;
	}
	/**
	 * @return
	 */
	public String getRequired() {
		return strRequired;
	}
	/**
	 * @param strRequired
	 */
	public void setRequired(String strRequired) {
		this.SetExtValue(TAG_REQUIRED, strRequired);
		this.strRequired = strRequired;
	}
	
	/**
	 * @return
	 */
	public String getAction() {
		return strAction;
	}
	/**
	 * @return
	 */
	public String getActionValue() {
		return strActionValue;
	}
	/**
	 * @param strAction
	 */
	public void setAction(String strAction) {
		this.SetExtValue(TAG_ACTION, strAction);
		this.strAction = strAction;
	}
	/**
	 * @param strActionvalue
	 */
	public void setActionvalue(String strActionvalue) {
		this.SetExtValue(TAG_ACTION_VALUE, strActionvalue);
		this.strActionValue = strActionvalue;
	}
	/**
	 * @return
	 */
	public String getRule() {
		return strRule;
	}
	/**
	 * @param strRule
	 */
	public void setRule(String strRule) {
		this.SetExtValue(TAG_RULE, strRule);
		this.strRule = strRule;
	}
	/**
	 * @return
	 */
	public String getMsg() {
		return strMsg;
	}
	/**
	 * @param strMsg
	 */
	public void setMsg(String strMsg) {
		this.SetExtValue(TAG_MSG, strMsg);
		this.strMsg = strMsg;
	}
	
	/**
	 * @return
	 */
	public String getEvent() {
		return strEvent;
	}
	/**
	 * @param strEvent
	 */
	public void setEvent(String strEvent) {
		this.SetExtValue(TAG_EVENT, strEvent);
		this.strEvent = strEvent;
	}
	
	@Override
	public void clear() {
		this.strRule 		= "";
		this.strMsg 		= "";
		this.strEvent		= "";
		this.strAction 		= "";
		this.strActionValue = "";
		this.strRequired 	= "";
		this.strRequiredMsg = "";
		super.clear();
	}
	
	
}
